#include "HttpServer.hpp"
#include <iostream>

static void usage(std::string proc)
{
    std::cout << "Usage:\n\t" << proc << " port" << std::endl;
    ;
}

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        usage(argv[0]);
        return -1;
    }
    int port = atoi(argv[1]);
    HttpServer* hs = new HttpServer(port);
    hs->InitServer();
    hs->Loop();
    return 0;
}